Move the QUnit check for widget.js and widget.css into the utility functions.