Not tried it myself but read about using requirejs
. Itself yuzayu backbone js for client side, I think to try requirejs backbonetutorials.com/organizing-backbone-using-modules/
Then there's this approach habrahabr.ru/company/mailru/blog/136899/
(Mail, Yandex, etc...):
"Let the resulting HTML that was the result of testing all of our logic will be the config that need to be connected."