Add check for window.location.hostname