m js snippets