pull the main application call out of index.html and put it in main.js