Add polyfill to enable testing reactjs with phantomjs