Cleanup: UI Helper

File: ui.js
Tests Added: False

Changes:
- Fixed JSHint Errors
- Correct missing "new" keyword