By the way, earlier I said Arduino but that didn’t really make any sense. My app isn’t hosted on the microcontroller version. Anyhow, I have merged your changes except for the index.php. I have instead added my own changes which allow people to switch between CDN and local at any time. It also lets you choose during the install. The option is contained in the settings menu. Anyone upgrading to the latest commit’s will default to CDN hosted. Simply switching the settings slider and reloading the app will switch you to local resources.
Please let me know how this works.