fixed browser compatibility issue with global name 'History'