Chrome doesn't recognize any placement of any of the code, and can't display the code properly even when a "debugger;" statement is added, so it makes debugging super difficult if not impossible.
According to a suggestion from @Krinkle we can solve this by using the separate ooui files in the demos rather than the fully concatenated one.