Add delete functionality via JS