node.js like module environment in the browser