webix-pattern for structured and reusable code

Hi all
i’m new in webix and in this day i’m playing following the site example; now i would like to write a small app (with his menu) for Create/Read/UpDate (Crud) some tables like Customers, Inventory items, Invoices etc. etc; my question is:
which pattern how can follow to write modular/structured code so that i can use functions (ex. Customer EDIT) also in other app, without rewrite/copy the code in order to have only one source code for a function ?
thanks in advance