Added ability to update title in history when using pushState/replaceState