Use this page to take a vocab file produced by Model Maker's average word embedding trained model and reformat this to be more friendly for JS consumption.
You can view the project source for this page here if you are curious.
Select vocab file produced by model maker: