Moved scripts to main.js