document.referrer is an object, not a string :anger: