Whichway is a small JavaScript library for working out the bearing between 2 locations.