Decoupled main.js into separate view controllers.