old_contents: $(document).ready(function() {
      randomAnimation($('#logo-r'));
      randomAnimation($('#logo-g'));
      randomAnimation($('#logo-b'));
  });
  
  
  function randomAnimation(target) {
      x = (Math.random() * 6) - 3;
      y = (Math.random() * 6) - 3;
      
      target.animate({
          top: y,
          left: x
      }, 1000, "swing", function() {
          randomAnimation(target);
      });
  
  };
  
new_contents: $(document).ready(function() {
      randomMovement($('#logo-r'));
      randomMovement($('#logo-g'));
      randomMovement($('#logo-b'));
      randomOpacity($('#logo-glow'));
  });
  
  
  function randomMovement(target) {
      x = (Math.random() * 6) - 3;
      y = (Math.random() * 6) - 3;
      
      target.animate({
          top: y,
          left: x
      }, 1000, "swing", function() {
          randomMovement(target);
      });
  };
  
  function randomOpacity(target) {
      o = (Math.random() * .5) + .5;
      
      target.animate({
          opacity: o
      }, 1000, "swing", function() {
          randomOpacity(target);
      });
  };
  
subject: Update animate.header.v2.js