Not sure why that script is not working, it is probably conflicting with other scrip[ts that are in Power Store.
the Power Store gallery, though, does already have a rotating banner that you can use built in.
if you select to use the Slideshow gallery type, it will give the rotating banner effect.