Add javascript to handle input of a pair of map coordinates

and move long.itude to second field