html5 canvas and modernizr assignment