Examples: window.locatoin.origin shim for IE9
Better undefined check for module.exports.