You’re writing javascript and serving with NGINX. You make a direct edit to the file on the server itself and get an ‘illegal token at EOF’ error in the devtools console.

Set sendfile off; in /etc/nginx/nginx.conf, and run service nginx reload to load the updated config.