Moved main code from index.html to js/main.js
Merge pull request #4 from jackvial/move_main_code#3

Moved main code from index.html to js/main.js