added document.ready(), grouped functions, removed highlightFirstSlide(), changed object to find visible slide