remove ".js" suffix so it doesn't broke under nginx

nginx is default config assumes *.js are static files, ie. it doesn't send it to php and goes directly on the file to try to send it. In this case, resulting on a 404 (obviously as it's not a file).