A javascript that detects DPR and can swap an image source string to serve up appropriate images for that display