setup js snippets