I am trying to run a browser style JavaScript program with contains document so it doesn't run on node or deno and I need to run it without opening the browser. I know browsers can be invoked from the terminal is there a browser which can be invoked from the terminal to run such JavaScript file and returns whatever is returned to stdout. Any suggestion is welcomed