updated the new history html page and my attempt at js