Paint app using javascript in html 5 canvas