Remove the # mark when location.hash == ""

Example: Closing the settings panel