on.addEventListener('click', async () => {
                        const path = button.dataset.path;
                        const content = fileContents[path].value.replace(/'/g, "'\\''");
                        await run(`echo '${content}' > ${MODPATH}/${path}`);
                        isDirty[path] = false;
                    });
                });
                Object.keys(fileContents).forEach(path => {
                    const textarea = fileContents[path];
                    textarea.addEvent