A collection of javascript snippets that I commonly use