Incorporated feedback from @sindresorhus.

Changed source map test to comply with pattern from gulp-esnext.
Removed various variable declarations.
Used the node.js API rather than the top-level API.