node.js require like loader for the browser