The documentation says this: const exporter = require('highcharts-export-server');
But with the rest of the top-level awaits, we get this error:
SyntaxError: await is only valid in async functions and the top level bodies of modules
The whole code has to be wrappes as async IIFE.