Fix JSHint warnings

Contributors should run JSHint to validate that their code
changes fit React's guidelines. When the cloned repository
already contains warnings on checkout, then this can be a
daunting process.

This commit fixes some of the warnings, but still does not
cover the warnings that occur due to long comment lines.