```
(function loadWithJquery($) {
  if(!$) {
    var script = document.createElement("script");
    script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";
    script.onload = function() {
      loadWithJquery(window.jQuery);
    };
    document.head.appendChild(script);
    return;
  }

  // continue in the knowledge that we have jquery available

  //...
}(window.jQuery));
```