set of javascript template helpers