Update widget.js

small bugfix, renaming I forgot earlier