Creating global helper functions in sails.