collection of javascript snippets