JS code that detects WebP support