... and besides, the original code also parses location.href, but then only uses the result for the hash.