Adding polyfill for react.js tests to work in phantomjs

Conflicts:
	karma.conf.js