This will allow you to support retina via javascript. This script prevents from loading 2 images.