https://github.com/resonantcore/lib/blob/master/js/diceware/...
https://github.com/resonantcore/lib/blob/master/demo/dicewar...
Run this locally, e.g.
dw = new Diceware();
dw.load("https://raw.githubusercontent.com/resonantcore/lib/master/js/diceware/diceware.wordlist.asc", function() {
console.log("Diceware loaded!");
});
console.log(dw.getWords(8).join(' '));