var latitude
var longitude
var place

function initMap() {
    var map = new google.maps.Map(document.getElementById('map'), {
        zoom: 8
        , center: {
            lat: latitude
            , lng: longitude
        }
    });
    var geocoder = new google.maps.Geocoder();

    document.getElementById('submit').addEventListener('click', function () {
        geocodeAddress(geocoder, map);
    });
}

function geocodeAddress(geocoder, resultsMap) {
    var address = document.getElementById('address').value;
    geocoder.geocode({
        'address': address
    }, function (results, status) {
        if (status === google.maps.GeocoderStatus.OK) {
            resultsMap.setCenter(results[0].geometry.location);
            var marker = new google.maps.Marker({
                map: resultsMap
                , position: results[0].geometry.location
            });
        } else {
            alert('Geocode was not successful for the following reason: ' + status);
        }
    });
}
@@ -35,382 +35,8 @@
 ce%0A%0A
-function initMap() %7B%0A    var map = new google.maps.Map(document.getElementById('map'), %7B%0A        zoom: 8%0A        , center: %7B%0A            lat: latitude%0A            , lng: longitude%0A        %7D%0A    %7D);%0A    var geocoder = new google.maps.Geocoder();%0A%0A    document.getElementById('submit').addEventListener('click', function () %7B%0A        geocodeAddress(geocoder, map);%0A    %7D);%0A%7D%0A%0A
 func
@@ -621,8 +621,382 @@
    %7D);%0A%7D
+%0A%0Afunction initMap() %7B%0A    var map = new google.maps.Map(document.getElementById('map'), %7B%0A        zoom: 8%0A        , center: %7B%0A            lat: latitude%0A            , lng: longitude%0A        %7D%0A    %7D);%0A    var geocoder = new google.maps.Geocoder();%0A%0A    document.getElementById('submit').addEventListener('click', function () %7B%0A        geocodeAddress(geocoder, map);%0A    %7D);%0A%7D

fixing the order of the bs