Added main.js and some changes in index.html and main.css