Loading the map from javascript.