Javascript snippets.