Reject orphaned > and } in XJSText

Stricter parsing to avoid mistakes, fixes #34 and facebook/react#353.

Test plan: `npm test`