separate logic from resumeView into mainView

add init.js file to initalize the views