Added main.js file, removed javascript code from index.html.