I'm trying to generate a token (partially random base 64 encoded string with a certain formatting) for use in a video chat application. To accomplish this, I am using Parse Cloud Code on my backend. I basically deploy a .js file that runs my server side scripts. The code I have now is below. I've been getting error code 141: "Uncaught ReferenceError: document is not defined" and another error saying that '$' is not defined. I suspect I am doing something like including jQuery wrong - probably something extremely noobish. Any ideas?I'm trying to generate a token (partially rando