add(snippets): add javascript snippet