Added AngularJS filter
Improved syntax and added test unit