ui.js now has functioning templates