Beautify and fix JSHint warnings in UI folder