Identify problem with check selector in js.