(function(Modules) {
  "use strict";

  Modules.Autofocus = function() {
    this.start = function($component) {
      var forceFocus = $component.data('forceFocus');

      // if the page loads with a scroll position, we can't assume the item to focus onload
      // is still where users intend to start
      if (($(window).scrollTop() > 0) && !forceFocus) { return; }

      $('input, textarea, select', $component).eq(0).trigger('focus');

    };
  };

})(window.GOVUK.Modules);

(function(Modules) {
  "use strict";

  Modules.Autofocus = function() {
    this.start = function(component) {
      var forceFocus = $(component).data('forceFocus');

      // if the page loads with a scroll position, we can't assume the item to focus onload
      // is still where users intend to start
      if (($(window).scrollTop() > 0) && !forceFocus) { return; }

      $('input, textarea, select', component).eq(0).trigger('focus');

    };
  };

})(window.GOVUK.Modules);

Fix reference to non-existent jQuery collection
Fix reference to non-existent jQuery collection

Raised on PR as comment:

https://github.com/alphagov/notifications-admin/pull/2880/commits/e4b4be9d459b73196bb5c403cdec881f68462440#r270781103
