fix main page loading with correct escaping of double quotes