get cookie method added back to the canvas_pencil.js