Static JS file --> create a JSON array instead of JS files (easier deployment, improved performance)
The JSON data will contain ALL data that is configured including the colors and HTML templates that are generated with Mustache PHP. The content is loaded from the static JS depending on the language.
The static JS should only contain the most relevant execution code and the retrieving and rendering of the banner. This JS file can be kept inside the extension as it's not generated. The hooks must be adjusted therefore. This static JS can be loaded lazily!
We need a second JS file responsible for the external content replacement. This file is only loaded if required and works like the current JS file including the language settings saved directly in the file.
Everything is saved in the current file path except the possibility to change the location of this path.