Wiring up delete on javascript
Deleting object from array
Updating list when adding