extracts the hash from the window location