added history.js

History.js normalizes history pushState, replaceState, onPopState on
modern browsers while providing support to older ones.
Fixed error messages not being shown