Adding new JavaScript snippets and updating instructions.