Run a JS file or Java executable and embed output

See https://discourse.gohugo.io/t/42145/3. I think this approach is applicable.