@cruunnerr YAS this worked.
I used jshint.com - which I’d never heard of - and it helped me figure out what was wrong! It was a combination of stupid syntax errors and using a different editor.
Thanks to you, I’ve got it up and running beautifully. You’re my new best internet friend.