node.js require is robust enough to simplify this a bit