Added a few more JavaScript snippets