Moves the helper function out of the class definition
Adds routing and uses the ng-view directive
Refactoring
Fixes watch target
Minor refactoring