anchor.diff:          if (result) {
             clearInterval(checkNewerLinksID);
             checkNewerLinksID = 0;
  -          var newerLinksElement = document.getElementById('newerLinkWrapper');
  +          var newerLinksElement = document.getElementById('button_time_forward');
  +	  setNextLink(newerLinksElement);
  +        }
  +      };
  +      var setNextLink = function(newerLinksElement) {
             newerLinksElement.setAttribute("hasLink", 1);
  -          newerLinksElement.innerHTML = '<%= link_to "Newer", :controller => "tweets", :action => "index", :startDateISO => @linkInfo[:nextLinks][:startDate],
  -                                       :endDateISO   => @linkInfo[:nextLinks][:endDate]  %>';
  -        }
  +          newerLinksElement.innerHTML = '<%= link_to "Newer &raquo;".html_safe, :controller => "tweets", :action => "index", :startDateISO => @linkInfo[:nextLinks][:startDate], :endDateISO   => @linkInfo[:nextLinks][:endDate]  %>';
         };
         var checkNewerLinks = function() {
           jQuery.getJSON(checkNewerLinksURL,
  
positive.code:         };
          google.visualization.events.addListener(chart, 'select', mouseEventHandler);
          initSidebar();
          
           $(document).ready(function() {
            console.log("document ready");
  
negative.code:         if (result) {
            clearInterval(checkOlderLinksID);
            checkOlderLinksID = 0;
            var olderLinksElement = document.getElementById('button_time_back');
  	  setPrevLink(olderLinksElement);
          }
        };
        
        var setPrevLink = function(olderLinksElement) {
            olderLinksElement.setAttribute("hasLink", 1);
            olderLinksElement.innerHTML = '<%= link_to "&laquo; Older".html_safe, :controller => "tweets", :action => "index", :startDateISO => @linkInfo[:prevLinks][:startDate], :endDateISO   => @linkInfo[:prevLinks][:endDate]  %>';
        };
        var checkOlderLinks = function() {
          jQuery.getJSON(checkOlderLinksURL,
  