Refactor index.js and tests to fit `require, exports, module` definition signature.
Merge pull request #13 from Mark-Simulacrum/refactor-module-definition

Refactor index.js and tests to fit `require, exports, module` definition...