Use dependencyName for cjs require call

Fixes #81
Merge pull request #82 from kpdecker/cjs-require-fix

Use dependencyName for cjs require call