actually working javascript and latlong :-P