working on js to capture diary data from the DOM