Tidying up globals file
Adding in navigationView spec
Refactoring main controller with new init method on views
Adding in mocking for view init
Adding in tests for navigation view
Refactoring of navigationView, implementation of init method, and also
adding jsdoc comments