Use NodeJS 'exports' object

Because this module's API is contained within the context of a single
constructor function, a module namespace object is not necessary.
Instead, export the constructor directly.