Jshint configuration corrected. Code clean up.
Router with controller introduced to manage page workflow.