changes require-react.js to Npm.require('react') to properly define g React obj