code: function getFromFileNameV2 (filename) {
  	var result = mime.getType(filename);
  
  	// Add charset just in case for some buggy browsers.
  	if (result === 'application/javascript' || result === 'application/json' || result === 'text/plain') {
  		result += '; charset=UTF-8';
  	}
  
  	return result;
  }
docs: Use `mime` v2.x to get type.
  
  @param {String} filename can be a full path
  @returns {String} mime type