added check for module as well as require for node environment

see PR : https://github.com/SheetJS/js-xls/pull/23
Merge pull request #39 from phola/master

added check for module as well as require for node environment