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