Beautify and fix JSHint warnings in UI folder
Merge pull request #328 from scrollback/beautify

Beautify and fix JSHint warnings in UI folder