Removed unnecessary widgetDef.command support.
Created widget always has to have data-widget attribute.
Check selection on every selectionCheck, so before selectionChange.
Fixed minor JS issues.