RaphaelJS canvas setup with distance calculations.