Added Javascript snippets