Fixes incorrect value for "scope" when initializing widgets in browser.
Also, fixed some warnings that editor found regarding unused variables.
Merge pull request #11 from philidem/master

Fixes widget initialization problem in browser