JQuery and Javascript to pan image

I had to overcome two issues to resolve this.

The 404 error was due to the way I registered the script. It pointed to the parent theme folder, while I had saved the .js file to the child theme folder. For the moment, I’ve put a copy in the parent theme folder, and am looking for the proper way to get it registered to the child theme.

Once the browser was able to find the .js file, I got the syntax error mentioned above because I included at the beginning of the .js file. After removing all the tags and keeping only javascript code, and referencing wordpress’ jquery, the code works like a charm.