private function setSettingsForJs() {
        //check if audio url was set
        if (ArrayHelper::keyExists('fileUrl', $this->settings, false) && !empty($this->settings['fileUrl'])) {
            $this->widgetSettings['fileUrl'] = $this->settings['fileUrl'];
        } else {
            throw new ElementNotFound('fileUrl was not set');
        }
        if (ArrayHelper::keyExists('callbacks', $this->settings, false) && !empty($this->settings['callbacks'])) {
            $this->widgetSettings['callbacks'] = $this->settings['callbacks'];
        }
        $this->widgetSettings['initSettings'] = ArrayHelper::keyExists('init', $this->settings, false) ?  $this->settings['init'] : [];
        $containerName = ArrayHelper::keyExists('container', $this->widgetSettings['initSettings'], false) ? $this->widgetSettings['initSettings']['container'] : $this->getId();
        $this->widgetSettings['initSettings']['container'] = '#' . $containerName;

    }