add snippets for JavaScript