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.
Merge pull request #2 from spicyj/patch-1

Add newline when concatting code