add extra debug information for widget.js