index.js now gets coordinates