more javascript snippets, some node