div id="image-container">
  </div>
  <div id="size"></div>

  <script async type="text/javascript" src="webassembly-jpeg.js"></script>
  <script>

    // Module is our Web Assembly instance
    var Module = {
      // When the instance has been loaded and compiled...
      onRuntimeInitialized: () => {

        // JS wrap of : Image* setSrcImage(BYTE* jpegData, ULONG size)
        let setSrcImage = Module.cwrap('setSrcImage', 'number', ['number', 'number']);
        // JS wrap of : Image* compress(ULONG qua