Adding a few JavaScript snippets.