Moved scripts to script.js