jQuery Cycle slideshow not executed properly with server side returned output

jQuery Cycle slideshow not executed properly with server side returned output

Hi, I have already posted the problem here:  http://stackoverflow.com/questions/24972393/cycle-plugin-slideshow-not-executed-but-images-shown-above-each-other
Does anyone know how to deal with the server side returned output such that the Plugin executes it properly?
Thanks!