use widget.js instead of index.html.