Use ajax for loading locations on webpage and cache all location merges.