separate logic from resumeView into mainView

add init.js file to initalize the views
Merge pull request #1 from acanals/master

Take a look at the diff and read the inline comments.