use nodejs-jsdom to fake window, document & fix less variable scope