add ajax call to map.js. Not working yet