put all js scripts in main.js