created main.js and added initial content