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

... signature.

Finishing a1fdc93831e775b54ab7ebea4dc37321cfae3ad2.
The order for the params are `require, exports, module`. Do you think you can tweak that in the test files?