title: Replace a word in a json object
body: <p>I'm trying to replace tmb with det in this string:</p>
  
  <p><a href="http://content7.flixster.com/movie/11/17/69/11176945_tmb.jpg" rel="nofollow">http://content7.flixster.com/movie/11/17/69/11176945_tmb.jpg</a> </p>
  
  <p>This my code I tried.</p>
  
  <pre><code>(function($) {
      $(document).ready(function() {
  
          var $apikey = 'myapikey',
              $apiURL = 'http://api.rottentomatoes.com/api/public/v1.0.json?apikey=',
              $topboxoffice = 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/upcoming.json?apikey=',
              $topboxofficeSearch = $topboxoffice + $apikey;
  
          $.ajax({
              url: $topboxofficeSearch,
              dataType: 'jsonp',
              success: function(response){
  
  
                  var $movies = response.movies,
                      $moviehtml = $("#movies");
  
  
                  $.each($movies, function(index, $movie){
                      var $poster = $movie.posters.original;
  
                      $poster.replace("tmb", "det");
  
                      //console.log($poster);
  
                      $("#movies").append( '&lt;img src= '+$poster+ '&gt;');
                  });
              },
              error: function(){
                  console.log("error");
              }
          });
      });
  })(jQuery);
  </code></pre>
  
  <p>I tried to use javascript .replace() but that didn't seem to work. Any help would be awesome. </p>