Fix dataGenerator documentation

This code sample was breaking the documentation build. JSDoc doesn't seem to like the code after the `@returns` tag, so I've moved it to the opening paragraph.