code: function(mime, name) {
  				var sel, ext, type;
  				if (mime && ! addedBadges[mime]) {
  					if (typeof addBadgeStyleSheet === 'undefined') {
  						if ($('#elfinderAddBadgeStyle'+fm.namespace).length) {
  							$('#elfinderAddBadgeStyle'+fm.namespace).remove();
  						}
  						addBadgeStyleSheet = $('<style id="addBadgeStyle'+fm.namespace+'"/>').insertBefore($('head').children(':first')).get(0).sheet || null;
  					}
  					if (addBadgeStyleSheet) {
  						mime = mime.toLowerCase();
  						type = mime.split('/');
  						ext = fm.escape(fm.mimeTypes[mime] || (name.replace(/.bac?k$/i, '').match(/\.([^.]+)$/) || ['',''])[1]);
  						if (ext) {
  							sel = '.elfinder-cwd-icon-' + type[0].replace(/(\.|\+)/g, '-');
  							if (typeof type[1] !== 'undefined') {
  								sel += '.elfinder-cwd-icon-' + type[1].replace(/(\.|\+)/g, '-');
  							}
  							try {
  								addBadgeStyleSheet.insertRule(sel + ':before{content:"' + ext.toLowerCase() + '"}', 0);
  							} catch(e) {}
  						}
  						addedBadges[mime] = true;
  					}
  				}
  			}
docs: fm.time('cwdLoad');