Added AngularJS module definition to exposing code

More info on dependency injection mechanics in AngularJS: http://docs.angularjs.org/guide/di