recipe to generate widget.js