New js snippets