Adding some JS snippets.