Use module.exports. Reduce scope.

This module really does one thing, and somewhat jankily too.