remove error in js