Replaced width=0 hack (for clearing canvas) with a proper ctx.clearRect() call.

Signed-off-by: Lanny McNie <lanny@gskinner.com>
Updated docs and libs.

Signed-off-by: Lanny McNie <lanny@gskinner.com>