qc javascript updated