Support loading static JavaScripts in the `config.php` files (see #4890)