Simple javascript paint application using canvas 2d features of HTML5