Useful services and filters for angularjs