Upgraded history.js to use Modernizer