Browser-side require() the node.js way