Fix issue #570

IE<9 complains about the use of `module.export` as `export` is a
reserved word.

Solution is to use `module.exports`
Merge pull request #575 from mroderick/issue-570

Fix issue #570