Add ajax function. Add map loading from json file.