Merge pull request #6 from MailOnline/master

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