var datajs = {
"CustomerName": "username surname",
"Id": 5017859,
"Deliveries": [{
$name = null;
foreach($html->find("script") as $element) {
$text = $element->innertext;
$pattern = "/var datajs = {\"CustomerName\":\"(.*?)\"/";
preg_match($pattern, $text, $m);
if (!empty($m))
$name = $m[1];
}