Run Chromium or Google Chrome in headless mode and forward the JS console output to the standard output.