get coordonates ajax js
fixed issues