js checks