fixed performance issue: need to move urlify and formatDate to tghe back end