updated to latest react.js and fix warnings