createNameAttribute = (name) => {
    const encoded = btoa(encodeURI(name));
    return `js-file-${encoded}`;
}
Generate a `data-name` attribute for the given filename
@param name The string name to encode