Add a title context entry for widgets
Fix jshint spotted problems in IWidget.js