formating issues in widget.js