JSDOM and Jquery upgrade

* Upgraded jsdom module dependency
* Upgrade jquery to 1.11.2
* Refactor jsdom resource management to release javascript memory via window.close