function SlideSelect(config){ var self = this; self.config = config; // DOM self.dom = config.dom; // Slides self.slides = config.slides; // Create a dot, and onclick self.addDot = function(slide){ var dot = new SlideSelectDot(slide); self.dom.appendChild(dot.dom); }; // Populate dots for(var i=0; i