update js to inform user of new messages