Added snippets for defining snippets and javascript snippets submodule