Looking at your htmlgenerated.txt file, it appears that the temp span is getting populated but that the <nobr> tag is missing. it also looks as though you have commented out this line:
Code:
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
To wit (from your htmlgenerated.txt file):
Code:
//leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
It may be, at this point, as simple as removing the (above red highlighted) comment slashes from your code. Also, please reinstate the script credit.
Bookmarks