[fix] correct check against isJS