document.addEventListener('DOMContentLoaded', function() { onUiLoaded(state.core.init); });