Commonjs export fix and jshint updates

Seems like the commonjs export wasn't working. This PR fixed it for me.