implemented js check