Add newline when concatting code

this.props.code could end without a newline, in which case we need to add one to avoid syntax errors.

See https://github.com/Khan/react-components/issues/2.