ackdrops = window.jQuery('.modal-backdrop'); if (backdrops.length > 1) { backdrops.not(':last').remove(); } } }); } })();