qcircuit for javascript version