Upgrade the history.js for older browsers, add a function to remove functions from the payload object for the history API