changed require to a node.js style