moved script.js from assets to public