require for the browser, Node.js style