use module.exports where available
Merge pull request #29 from substack/master

use module.exports where available