It looks like there's a package missing which is required to run Chromium or JX Browser in order to execute your script successfully.
The missing library is libX11.so.6.
You can install this in Debian system with this command,
sudo apt-get install libx11-6 -y
You can also look up other necessary package names by typing the below line in your terminal and ...