private static function testOwncloudJavascriptConfigFile()
 {
     $url = 'apps/' . Settings::APP_ID . '/extra/static/config/OwnCloudConfig.js';
     $response = file_get_contents($url);
     if (!Helper::doesJsConfigExist()) {
         return;
     }
     if (strpos($response, 'OWNCLOUD_ORIGIN') === false) {
         return 'Did not find OwnCloudConfig.js at ' . $url;
     }
 }
<?php

use OCA\SpreedME\Helper\Helper;
style('spreedme', 'settings-admin');
if (Helper::doesJsConfigExist()) {
    script('spreedme', '../extra/static/config/OwnCloudConfig');
}
script('spreedme', 'settings-admin');
$classes = array();
$classes[] = Helper::doesPhpConfigExist() ? 'php-config-file' : 'php-config-database';
$classes[] = Helper::doesJsConfigExist() ? 'js-config-found' : 'js-config-missing';
?>

<div id="spreedme" class="section <?php 
echo implode(' ', $classes);
?>
">
	<h2 class="app-name">Spreed.ME</h2>
	<a target="_blank" class="icon-info svg"
		title="Open documentation"
		href="https://github.com/strukturag/nextcloud-spreedme/blob/master/README.md"></a>
	<p class="hidden warning message"></p>
	<div class="show-if-php-config-file">
		<p><code>config/config.php</code> was found.</p>
		<p>If you want to change it, you need to edit the file by yourself.</p>
	</div>
	<div class="show-if-php-config-database">
		<p><code>config/config.php</code> was not found. We will use the Nextcloud database to read/write config values.</p>
		<p>You can change them here:</p>
		<form action="#" method="POST">
			<p class="hidden SPREED_WEBRTC_CONFIG warning">