created a UI.js file for your UI functions in js