fixed some scope issues with 'this'; initial load of ScopeChangeWidget.js