anchor.diff:          atlasJS.updateMetadataPanel( );
         }
       },
  -    error: function( e ) {
  +    error: function ( e ) {
         alert( e.responseJSON.error );
         atlasJS.addPlaceToMap( place, "failed", { selected: true } );
         atlasJS.updateMetadataPanel( );
       }
  -  });
  -};
  -
  -atlasJS.explodePlace = function( place ) {
  -  if( !place ) { return; }
  +  } );
  +};
  +
  +atlasJS.explodePlace = function ( place ) {
  +  if ( !place ) { return; }
     var taxonID = $( "#map" ).data( "taxon-id" );
  -  $.ajax({
  +  $.ajax( {
       type: "post",
       dataType: "json",
       url: "/exploded_atlas_places",
       data: { atlas_id: $( "#map" ).data( "atlas-id" ), place_id: place.id },
  -    success: function( s ) {
  +    success: function ( ) {
         atlasJS.addPlaceToMap( place, "exploded", { selected: true } );
         atlasJS.updateMetadataPanel( );
         atlasJS.refreshPlaces( );
       },
  -    error: function( e ) {
  -      console.log("explode failed");
  -    }
  -  });
  -};
  -
  -atlasJS.unexplodePlace = function( place ) {
  -  if( !place || !atlasState.explodedPlaces[place.id]) { return; }
  +    error: function ( ) {
  +      console.log( "explode failed" );
  +    }
  +  } );
  +};
  +
  +atlasJS.unexplodePlace = function ( place ) {
  +  if ( !place || !atlasState.explodedPlaces[place.id] ) { return; }
     var taxonID = $( "#map" ).data( "taxon-id" );
  -  $.ajax({
  +  $.ajax( {
       type: "delete",
       dataType: "json",
       url: "/exploded_atlas_places/" + atlasState.explodedPlaces[place.id],
  -    success: function( s ) {
  +    success: function ( ) {
         atlasJS.removeActivePlaceLayer( );
         atlasJS.addPlaceToMap( place, "pending", { selected: true } );
         atlasJS.updateMetadataPanel( );
         atlasJS.refreshPlaces( );
       },
  -    error: function( e ) {
  -      console.log("unexplode failed");
  -    }
  -  });
  -};
  -
  -atlasJS.getListings = function( place ) {
  -  if( !place ) { return; }
  +    error: function ( ) {
  +      console.log( "unexplode failed" );
  +    }
  +  } );
  +};
  +
  +atlasJS.getListings = function ( place ) {
  +  if ( !place ) { return; }
     var taxonID = $( "#map" ).data( "taxon-id" );
  -  $.ajax({
  +  $.ajax( {
       type: "get",
       dataType: "json",
       url: "/atlases/" + $( "#map" ).data( "atlas-id" ) + "/get_defaults_for_taxon_place",
       data: { taxon_id: $( "#map" ).data( "taxon-id" ), place_id: place.id },
  -    success: function( s ) {
  -      panel = $( "#bottomright" );
  +    success: function ( s ) {
  +      var panel = $( "#bottomright" );
         panel.html( "" );
         panel.append( $( "<h4>" ).text( "Listed Taxa" ) );
  -      $.each(s, function(key,value) {
  +      $.each( s, function ( key, value ) {
           var placeName = value.place.display_name || value.place.name;
  -        var explodeLink = $( "<a href='/listed_taxa/"+value.id+"'>" ).text( value.taxon.name +" in " + placeName );
  +        var explodeLink = $( "<a href='/listed_taxa/" + value.id + "'>" ).text( value.taxon.name + " in " + placeName );
           panel.append( explodeLink );
           panel.append( "<br>" );
  -      });
  +      } );
       },
  -    error: function( e ) {
  -    }
  -  });
  -};
  -
  -$( function( ) {
  +    error: function ( ) { }
  +  } );
  +};
  +
  +$( function ( ) {
     atlasState.explodedPlaces = $( "#map" ).data( "exploded-places" );
     $( "#map" ).taxonMap( {
       zoomLevel: 2,
       latitude: 28,
       longitude: -34
     } );
  -  atlasState.map =  $( "#map" ).data( "taxonMap" );
  -  if( $( "#map" ).data( "is-curator" ) ){
  +  atlasState.map = $( "#map" ).data( "taxonMap" );
  +  if ( $( "#map" ).data( "is-curator" ) ) {
       atlasState.map.addListener( "click", atlasJS.clickCallback );
     }
   
     atlasJS.showInitialPlaces( );
  -  
  -  $('.destroy_all_alterations').on('click', function(event){
  -    event.preventDefault();    
  -    var $this = $(this);    
  -    var atlas_id = $this.attr("data-id");
  -    $.ajax({
  +
  +  $( ".destroy_all_alterations" ).on( "click", function ( event ) {
  +    event.preventDefault();
  +    var $this = $( this );
  +    var atlasID = $this.attr( "data-id" );
  +    $.ajax( {
         type: "POST",
  -      url: "/atlases/" + atlas_id + "/destroy_all_alterations",
  -      data: { id: atlas_id },
  -      success: function(data){
  -        $("tbody#alteration tr").fadeOut();
  -        $("table").append("<div class='no_alteration'>No alterations to this atlas yet</div>");
  +      url: "/atlases/" + atlasID + "/destroy_all_alterations",
  +      data: { id: atlasID },
  +      success: function ( ) {
  +        $( "tbody#alteration tr" ).fadeOut();
  +        $( "table" ).append( "<div class='no_alteration'>No alterations to this atlas yet</div>" );
           $this.fadeOut();
         },
  -      error: function(data){
  -        console.log("error");
  +      error: function ( ) {
  +        console.log( "error" );
         },
  -      dataType: 'JSON'
  -    });
  -  });
  -  
  -  $('.remove_atlas_alteration').on('click', function(event){
  -    event.preventDefault();    
  -    var $this = $(this);    
  -    var aa_id = $this.attr("data-atlas-alteration-id");
  -    $.ajax({
  +      dataType: "JSON"
  +    } );
  +  } );
  +
  +  $( ".remove_atlas_alteration" ).on( "click", function ( event ) {
  +    event.preventDefault();
  +    var $this = $( this );
  +    var aaID = $this.attr( "data-atlas-alteration-id" );
  +    $.ajax( {
         type: "POST",
         url: "/atlases/" + $( "#map" ).data( "atlas-id" ) + "/remove_atlas_alteration",
  -      data: { aa_id: aa_id },
  -      success: function(data){
  +      data: { aa_id: aaID },
  +      success: function ( ) { },
  +      error: function ( ) {
  +        console.log( "error" );
         },
  -      error: function(data){
  -        console.log("error");
  -      },
  -      dataType: 'JSON'
  -    });
  -  });
  -      
  -  $('.remove_listed_taxon_alteration').on('click', function(event){
  -    event.preventDefault();    
  -    var $this = $(this);    
  -    var lta_id = $this.attr("data-listed-taxon-alteration-id");
  -    $.ajax({
  +      dataType: "JSON"
  +    } );
  +  } );
  +
  +  $( ".remove_listed_taxon_alteration" ).on( "click", function ( event ) {
  +    event.preventDefault();
  +    var $this = $( this );
  +    var ltaID = $this.attr( "data-listed-taxon-alteration-id" );
  +    $.ajax( {
         type: "POST",
         url: "/atlases/" + $( "#map" ).data( "atlas-id" ) + "/remove_listed_taxon_alteration",
  -      data: { lta_id: lta_id },
  -      success: function(data){
  -        console.log("success");
  +      data: { lta_id: ltaID },
  +      success: function ( ) {
  +        console.log( "success" );
         },
  -      error: function(data){
  -        console.log("error");
  +      error: function ( ) {
  +        console.log( "error" );
         },
  -      dataType: 'JSON'
  -    });
  -  });
  -  
  -});
  -
  -
  +      dataType: "JSON"
  +    } );
  +  } );
  +} );
  
positive.code:   fillOpacity: 0
  };
  
  atlasJS.clickCallback = function( e ) {
    atlasJS.bestPlaceForLatLng( e.latLng.lat( ), e.latLng.lng( ) );
  };
  
  atlasJS.removeActivePlaceLayer = function( ) {
    if( atlasState.activePlaceLayer ) {
      var existing = atlasState.placeLayers[atlasState.activePlaceLayer.place.id];
      atlasState.activePlaceLayer.layer.setMap( null );
      atlasState.activePlaceLayer = null;
      // layers without types are just selections, not in the atlas
      if( existing ) {
        if( existing.type && existing.type != "pending" ) {
          atlasJS.addPlaceToMap( existing.place, existing.type );
        } else {
          existing.layer.setMap( null );
          delete atlasState.placeLayers[existing.place.id]
        }
      }
    }
  };
  
  atlasJS.addPlaceToMap = function( p, type, options ) {
    options = options || { };
    if( !p || !p.geometry_geojson ) { return; }
    // remove any versions of this place already stored
    var existingPlaceLayer = atlasState.placeLayers[p.id];
    var isSelection = options.selected;
    if( existingPlaceLayer && isSelection && !type ) {
      type = existingPlaceLayer.type;
    }
    if( atlasState.placeLayers[p.id] ) {
      atlasState.placeLayers[p.id].layer.setMap( null );
      delete atlasState.placeLayers[p.id];
    }
  
    var style;
    if( type == "native" ) {
      style = atlasJS.nativeStyle;
    } else if( type == "introduced" ) {
      style = atlasJS.introducedStyle;
    } else if( type == "exploded" ) {
      style = atlasJS.explodedStyle;
    } else if( type == "failed" ) {
      style = atlasJS.failedStyle;
    } else {
      style = atlasJS.pendingStyle;
    }
  
    if( isSelection ) {
      style = _.assign( { }, style, {
        strokeWeight: 5
      });
    }
  
  
    var layer = new google.maps.Data({ style: style });
    layer.addGeoJson({
      type: "Feature",
      geometry: p.geometry_geojson
    });
    if( $( "#map" ).data( "is-curator" ) ){
      // layers need the same click actions as map, because layers are on top
      layer.addListener( "click", atlasJS.clickCallback );
    }
  
negative.code: 
  atlasJS.failedStyle = _.assign( { }, atlasJS.nativeStyle, {
    strokeColor: "red",
    fillColor: "red"
  } );
  
  atlasJS.pendingStyle = _.assign( { }, atlasJS.nativeStyle, {
    strokeColor: "#202020",
    fillColor: "#202020"
  } );
  
  
  atlasJS.explodedStyle = {
  