node.js's handling of require() is... less than obvious