fixing canvas 100% width issue

can't do 100% on canvas width.  make a function to resize the canvas to
the window size, then used jquery's resize event to resize the canvas
when the window resizes.