Script for distance calculation and start coding third section of page