var canvas = $("#canvas"), 
  ctx = canvas.getContext("2d"),
  width = 512,
  height = 480;

canvas.width = width;
canvas.height = height;

@@ -10,12 +10,33 @@
 s = 
-$
+document.getElementById
 (%22
-#
 canv

Update canvas.js