Revised ui.js file to work with browserify