missed cleanup in js