It turns out that order-of-definition is a thing for browser JS, even if not for node.js