Global JS utility functions and filters for the angular app