Paint application in HTML5 and Javascrp