collection of js snippets