Modernized jsdom example and created coffeescript version