Javascript date comparison for dynamically created HTML table rows

&…