title: Old JS script in SparkAR stoped working with multiple errors
body: <p>I created this JS script a long time ago for a face filter effect. After the new SparkAR update I needed to refresh the project to make it available for the users, but my old script now shows me a lot of errors.</p>
  <p>The script is used to change textures assigned to some materials when I click on different 3D planes in the scene.</p>
  <p>I tried to create a new script to see if the syntax has changed, but the brand new script also has errors. I looked in the documentation, the syntax seems to be right. How can I fix them?</p>
  <p>Example from my script:</p>
  <p><a href="https://i.stack.imgur.com/6YNnr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6YNnr.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/LvA77.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LvA77.png" alt="enter image description here" /></a></p>