Misc js-helpers for node.js