include a index.html file with the submission, that contains only a command that runs the js code
Nevermind. Do wheateader you want, as long as the entire js code fits and it's encoded into a qr code.