fix js flash