moved some js init code out of an inline script
Refactored js file. Give each row its own 'delete' button