text: fetch('./func_test.wasm').then(response => 
      response.arrayBuffer()
  ).then(bytes => WebAssembly.instantiate(bytes)).then(results => {
      console.log("Loaded wasm module");
      instance = results.instance;
      console.log("instance", instance);
  
      var white = 2;
      var black = 1;
      var crowned_white = 6;
      var crowned_black = 5;
  
      console.log("Calling offset");
      var offset = instance.exports.offsetForPosition(3, 4);
      console.log("Offset for 3,4 is ", offset);
  
      console.debug("White is white?", instance.exports.isWhite(white));
      console.debug("Black is black?", instance.exports.isBlack(black));
  });