Removed hardcoded url from angularjs calls