Similarity metrics for retrieving QGram in javascript and as NPM package. Implementation initially inspired by Simmetrics by Sam Chapman.