fix js widget delete callback