Move index.js and package*.json to a directory in a jail
npm i in said directory
Move injectTempGUI.sh to your main system
Edit the vars in injectTempGUI.sh to match your setup (You don't have to make the nginx.conf and index.html files in the jail. This script will create them for you)