fix js-flash communication