Move back the JS script to where it belongs