moved ng-app to the html tag
removed the function encapsuation from the JS file