Using controllers in angularJS
Code review