Use prompt() instead of alert() for coordinates

This allows easier copy-pasting on mobile devices where one can not
select text from alert boxes.