(function () { var cache; if (typeof $ !== 'undefined') { cache = $.noConflict(); } else if (typeof jQuery !== 'undefined') { cache = jQuery; delete jQuery; } if (cache) { app.define('jQuery', function () { return cache; }); } }());