moved script to script.js