JavaScript that detects user agent type (iPhone, Android, PC, etc), and if the device has Retina Display.