move freegeoip API call to client, change client functions to synchronous, draw markers and polylines