Removed document.ready() for the inline js on the widget.