Fix typo in history.js

"The function to handle a errors." fixed to "The function to handle errors."
"timestap" fixed to "timestamp"