update inputhistory.js