Sfondi StackBlur

Sembra promettente, ma ottengo:
ReferenceError non rilevato: assegnazione a una variabile non dichiarata img

          var blur = $(\"#background_b\").data(\"blur\");
          img = new Image();
          c = document.getElementById(\"background_b\");
          ctx = c.getContext(\"2d\");
          w = window.innerWidth;
          h = window.innerHeight;

Penso che intendessi usare le virgole invece dei punti e virgola qui.