changes made to support js code minification

Use inline annotation. Instead of providing the function as second argument to any controller, directive or anything else, provide array of list of service names followed by the function with those services as arguments. When the js code is minified all the variables will be minified, $injector wont be able to make out which services has to be invoked. So, Inline annotation prevents it. For more reference: visit A note on minification : https://docs.angularjs.org/tutorial/step_05