rm in js also