(function(){ if ( window._lodash_tmp !== false && typeof window._lodash_tmp === 'function' ) { // Remove reference to _ if is underscore window.underscore = _.noConflict(); // Restore reference to lodash if present window._ = window._lodash_tmp; } })();