widget/plugin.js: Nested widget fix