New js code snippets