javascripts move to main.js