This doesn't detect that html5 history isn't supported, only that there is a hash code. What if html5 history IS supported AND there is a hash in the url?