Moved date and string helper functions into helper.js