fix screenshot, refactor to keep everything directly related to modgui.ttl in one js, so to reuse it in mod-manager