Update Widget.js

complete code