Adding prototype for application using angularjs and WebApi