Adding karma, chai, mocha and implementing a distance calculator