Cleaned up index.html and added distance calculation.