Simplification of the widget.js using the addProperties