function jump(hashString){
var url = location.href; //Save the URL without hash part.
location.href = "#" + hashString; //Jump to target anchor (by id).
history.replaceState(null,null,url); //If you don't like hashes restore url.
}