moved the require('jsdom') up

otherwise coffee compiler will generate the var within the constructor's scope, so it would still be required every time.