I was concerned at first that location.hash could be undefined in some environments.. but it is '' everywhere I checked, so, good to go.
location.hash
undefined
''
:+1: to merge.
Thanks