Creating an simple API in JS to parse coordinates to application. Using gmaps.js