Thanks for your reply.
Here is what I want to have happen:
Convert the web page into a pdf that downloads as soon as the page loads.
Currently the code is inside the onready funciton within Wix, but it gives an error code of "there was an error in your script" and cannot find module 'crypto'
I have this at the top of the page before the onready function
import grabzit from 'grabzit';