added js check