javascript namespace for slideshow code