Extract javascript and actually calculate distances in miles