added server-side markup generator (jsdom)