When user clicks add point tracks their GPS using javascript function