modded script for newer jsdom and jquery. added request to package.json