Distance is a coffee-script for calculating distances between strings