code: function() {
          canvasWidth = $(window).width();
          canvasHeight = $(window).height();
          if (supportsCanvas) {
            $canvas[0].width = canvasWidth;
            $canvas[0].height = canvasHeight;
          }
          $container.width(canvasWidth);
          $container.height(canvasHeight);
        }
docs: /*
  
  Center the canvas on window resize