fixed typo in widget.js