big application

the following snippet works fine if I insert it in index.html (php).
https://snippet.webix.com/9mhywawy
but as I separate it in 2 file logic and ui (view), as described in the guide to create big applications, it does not work and I can not understand why

Hello,

Could you please clarify how you separate it? I will be very grateful if you show an example of how you did it.

Also, please show me errors which appear in the console