clear canvas for redraw

context.clearRect ( x , y , w , h );

or

canvas.width = canvas.width;