fixed issue with map loading, added a json parse call to parse the data from the server.