Added all the Javascript snippets