Fixes incorrect value for "scope" when initializing widgets in browser.
Also, fixed some warnings that editor found regarding unused variables.