add js snippets.