Update widget.js

if dropbox is open and widget is removed