Add history.js to support back and front buttons