updating angularjs