simplification of the widget (using the properties)
Update widgets.js (setting defaultValue)
Merge pull request #1 from jbpiot/master

simplification of the widget (using the properties)