Update widget.js to new template
Merge pull request #3 from jbpiot/master

Update widget.js to new template