[fix] more flexible no-js check