fix js check bug