fix fx javascript scopr bug