patch jquery.history.js