Pass retina scale to HTML as data-retina