Fixed broken boilerplate code so the /lead page would display
Improved getting the user's location