Galleria Jquery plugin caption wont rotate but images do


I’m using the galleria jquery plugin. It works fine but i needed to put richer html in the caption text. So i followed the example here: to set different html elements as the caption but now it simply shows the first images caption and none others.

If anyone could have a look for me i would be eternally grateful!

Thank you!