add js snippets