made history.js async