A collection of javascript helpers