correct formatting for has_js

Apologies. My earlier pull was wrong. This is verified by lead dev.