Moved date and string helper functions into helpers.js