updated to standard angularjs dependency ingection syntax