Attempting to mimic the existing application, obviously I've introduced some confusion here in the actual code.  Was planning to explain it in the blog post but I suppose I should just bite the bullet and actually implement the "legacy" app the way it was in the real code, i.e., not using require.