Starting with grammar-haiku example:

- Catch undefined when trimming whitespace (rita.js)
- Change .setText() to .text() in grammar-haiku examples.
- (Mostly) fixed grammar-haiku examples (alignment not really "centered")