$(document).ready(function(){

  console.log("sup");
  // grab call .ajax submit pass in url, type
  // first create file and then create child
  //

  $()


  function initialize() {
    var mapOptions = {
      zoom: 13
    };

    var map = new google.maps.Map(document.getElementById('map-canvas'),
        mapOptions);

    // Try HTML5 geolocation
    if(navigator.geolocation) {
      navigator.geolocation.getCurrentPosition(function(position) {
        var pos = new google.maps.LatLng(position.coords.latitude,
                                         position.coords.longitude);
        var content = "" + pos +"";
        var marker = new google.maps.Marker({
          map: map,
          position: pos,
          icon: '/images/fuzzfinders_favicon.png',
          draggable: true
        });
        var infoWindow = new google.maps.InfoWindow({
          // map: map,
          // position: pos,
          content: content,
        });

        google.maps.event.addListener(marker, 'click', function(){
          infoWindow.open(map, marker)
        });
         google.maps.event.addListener(marker, 'dragend', function(){
          content = ""+[this.getPosition().lat(),this.getPosition().lng()]+"";
          infoWindow.setContent(content);
          infoWindow.open(map, marker)
        });
        map.setCenter(pos);
      }, function() {
        handleNoGeolocation(true);
      });
    } else {
      // Browser doesn't support Geolocation
      handleNoGeolocation(false);
    }
  }

  function handleNoGeolocation(errorFlag) {
    if (errorFlag) {
      var content = 'Error: The Geolocation service failed.';
    } else {
      var content = 'Error: Your browser doesn\'t support geolocation.';
    }

    var options = {
      map: map,
      position: new google.maps.LatLng(60, 105),
      content: content
    };

    var infowindow = new google.maps.InfoWindow(options);
    map.setCenter(options.position);
  }

  google.maps.event.addDomListener(window, 'load', initialize);
});

@@ -42,119 +42,34 @@
 log(
-%22sup%22);%0A  // grab call .ajax submit pass in url, type%0A  // first create file and then create child%0A  //%0A%0A  $()%0A
+content);%0A%0A%0A  var content;
 %0A%0A  
@@ -502,28 +502,24 @@
 e);%0A        
-var 
 content = %22%22
@@ -1046,32 +1046,34 @@
 on()%7B%0A          
+  
 content = %22%22+%5Bth
@@ -1127,32 +1127,34 @@
 %5D+%22%22;%0A          
+  
 infoWindow.setCo
@@ -1169,16 +1169,18 @@
 ntent);%0A
+  
         
@@ -1920,12 +1920,604 @@
 alize);%0A
+%0A  // $(%22.new_report%22).on(%22submit%22, function(event)%7B%0A  //   event.preventDefault();%0A  //   console.log(%22button clicked%22);%0A  //   var formData = $(this).serialize();%0A  //   console.log(formData);%0A  //   formData += %22&report%255Bcoords%255D=%22 + content%0A  //   // formData%5B%5D%0A  //   console.log(formData);%0A  //   var link = $(this).attr(%22action%22);%0A  //   // var data = %7Banimal_type: %5Banimal_type%5D%7D%0A  //   // console.log(data)%0A  //   $.ajax(%7B%0A  //     url: link,%0A  //     type: %22post%22,%0A  //     dataType: %22JSON%22,%0A  //     data: formData%0A  //   %7D)%0A  //   .done(function(response)%7B%0A%0A  //   %7D)%0A  // %7D);%0A%0A
 %7D);%0A

Reset Form Submission & Modify JS