Handle retina displays by Javascript SDKs