Use Jon Anthony's js-bv-sampling library to obtain the estimated density for local vcf files.