Update js for history recall on update