[Bug 998767] Fix {for not win}
Fix bad variable name in ui.js

This was a bug introduced in dda371ea.