anchor.diff:         allMarkers.push(marker);
       }
       for (var x = 0; x < allMarkers.length; x++){
  -      getMarker(allMarkers[x]);
  +      clickMarker(allMarkers[x]);
       }
     });
  +}
  +
  +function clickMarker(marker) {
  +  marker.addListener('click', function(){
  +    var id = marker.soundtrekId
  +    $.ajax({
  +      url: '/sound_treks/' + id,
  +      type: 'GET',
  +      data: {soundtrekId: id}
  +    })
  +    .done(function(response){
  +      window.location.href = "/sound_treks/" + response.sound_trek_id
  +    })
  +  })
   }
   
   // function getCurrentLocation() {
  
positive.code:       locError,
        geolocationOptions
    });
  }
  
  function setMarkerPosition(marker, position) {
  
negative.code: function displayAndWatch(position) {
    // set current position
    setCurrentPosition(position);
    // watch position
    watchCurrentPosition();
    // get position for users on nonmobile devices
    staticCurrentPosition(position);
  }
  
  // function to render SoundTreks on mobile devices
  function watchCurrentPosition() {
    var positionTimer = navigator.geolocation.watchPosition(
      function (position) { // success function pasted in
  