added updated cookie example with devicePixelRatio