adds some snippets for js