JS, delete, update status