moved main.js to javascript project