For some reason 2 results are coming up in the history for ff and chrome, one to "search-results" and another to "search"?

Code:
<script type="text/javascript">
	var stateObj = { search: "search-results" };
	history.replaceState(stateObj, "page 1", "search-results");
</script>
I thought it was supposed to replace the entry vs create a new one ("pushState()")

https://developer.mozilla.org/en/DOM...owser_history/
"history.replaceState() operates exactly like history.pushState() except that replaceState() modifies the current history entry instead of creating a new one."