newui: Group controller refactoring
code style: Use 'var self = this' in js files