add some JS snippets