add some more js snippets