[UI] fix jshint warnings