creating the canvas via js