fixed #1265, return module.exports
Merge pull request #1266 from hotoo/fix-1265

fixed #1265, return module.exports