You could redo the Java in JavaScript using Node that has various network interfaces (unlike a browser) or call the Skypack code from the command line as it suggests in the second paragraph on their home page.
As noted on the ChirpStack website thread you have created, you are trying to warp time & space with this project and as it’s not actually TTN related, so not something for this forum.