cleaned up map javascript, gets distances for found courts