Added call to display all distances, and moved get json data into xhr callback function