node and js snippets