fix lint errors
bundle jsdom dependency (so don't need to node-gyp)