fix js and flash