refactor handlebar helper functions into seperate module