NCoVaR in JavaScript