JavaScript: to minify JPEG image without losing EXIF