Set onerror before anything
Disable saucelabs on travis
Set NODE_ENV to production in build.sh

React source code uses it to disable some development code.