Javascript HTML 5 Canvas Drawing Application