Fix typo in history.js

"handle a errors" fixed to "handle errors"
"timestap" fixed to "timestamp"