corrected lat/long javascript issue