add js to avoid empty "delete"