Fixes a jshint test error in ui.js.