Update widget.js

fixing copy and paste errors