Revert "Merge pull request #1234 from RReverser/pure-cjs"

This reverts commit 7987e6a51dd6e33d6736e98f038d4ace545feabe, reversing
changes made to d88d4796854569e9352a6d81489262f6566b75b4.