updated to latest angularjs