Updated angularjs with patch