remove error code in js