JavaScript snippets library