Added module.exports support

It is helpful option when I use something like DuoJS.