Stop duplicate history entries
Remove conditional that is negated by use of replaceState. Update comments