require jsdom only when in the server