hqx in js