a paint application using html canvas and JavaScript