using new jsdom location object as prototype