public function getScriptInitialization($defaultValues = false)
    {
        $scriptContent = '';
        foreach ($this->variables as $variable) {
            $scriptContent .= $variable->getScriptDeclaration()."\n";
            if ($defaultValues) {
                $scriptContent .= $variable->getScriptValueSet()."\n";
            }
        }

        $scriptContent .= $this->checkVariable->getScriptDeclaration()."\n";
        $scriptContent .= $this->checkOldVariable->getScriptDeclaration()."\n";
        $scriptContent .= $this->checkWindow->getScriptDeclaration()."\n";
        $scriptContent .= "declare check_original = ".$this->checkWindow->getInitialValue().";\n";

        if ($defaultValues) {
            $scriptContent .= $this->checkVariable->getScriptValueSet()."\n";
            $scriptContent .= $this->checkOldVariable->getScriptValueSet()."\n";
            $scriptContent .= $this->checkWindow->getScriptValueSet()."\n";
        }

        return $scriptContent;
    }