snippets and js commands