Stop scripts from being output unnecessarily

I don't use widgets on my site at all but the ajax.js still gets output (and so loaded). Moving the enqueue to the widget output means the file gets output in the footer (which is better for speed) and stops it from being loaded when it's not needed.