hash algorithm filter for AngularJS