Some JS fixes.
Add WidgetsController specs.