rm isEqual function

and replaced it with angular.equals