Add a has_js check to allow non-js checking