Fixing for IE

In IE, an empty location.hash will report as “#” in some cases
apparently.