Faster JS check