Convert Tiff To Jpg Javascript