Changed referral detection slightly for IE compatibility.
Merge pull request #155 from code-dot-org/ie_patch

Changed referral detection slightly for IE compatibility.