return the globally defined object as the export.

this should allow you to...

    var fetch = require('fetch');

...instead of relying on the implicit global.