Export uibase as global
Modify files per new require syntax