Write JavaScript libraries that works both in node.js and browser like a charm