Customize javascript snippets