Add JavaScript Snippets

This PR adds JavaScript snippets.