Preapproved JS fix