Added Javascript for drawing on the Canvas.