more js snippets