js checks added