Fix slideshow JavaScript

Because the previous dude was a n00b.

(TBH, I still don't think I'm doing things correctly. I really don't
like that `out.push()` part, yet it is tidier than a bunch of:
    'str'+value+'str'