location.replace("#hash_value_here");

The above seems to do what you're after.