Prova ad usare:

if(esito.indexOf('1')>=0) {

ciao