adding new js snippets