fixed bug in javascript that switches the lat and long around on the
index page