updated deleted records js