Update widget.js

small bug, looks like I need to close page before retest some things