moved polling code to jsdom created event

bumped to 0.5.0