Use the history object in an iframe

This prevents the cases where history.pushState and History.prototype.pushState are overwritten.