Added javascript snippets.