Added js snippets