Adjusted jQuery requirement (Node.js generator)

Fixing "jQuery requires a window with a document" error.