little update inputhistory.js