Abstract jsdom out of dictionary