JavaScript, text getter: Only force add a semicolon at the end if non-empty.
Modified flattenRequireJs test so the Travis output has a better chance of telling me why it fails.