Address issue in c747295

The issue mentioned in c747295b3246f03e6f97c2a479b735dc37d79b50 is due to the fact that I changed `$thisWidgetContents.html($widgetContent);` to use `$thisWidgetContents.html($widgetContent.html());` (essentially) instead, when they are not equivalent. I've reimplemented the minor changes, ensuring that the dashboard widget doesn't break.