Update position of has_js flag