for(var len=chislo.length, html=[len-1], i=0; i<len; i++) html[i]='<span class="number">'+chislo.charAt(i)+'</span>'; span_value.innerHTML=html.join('');