moved main.js to js folder