Fix history.js for tour