save to module.exports even if window is defined (for browserify)
Merge pull request #6 from MailOnline/master

save to module.exports even if window is defined (for browserify)