.getSlideIndex() now belongs in the prototype as opposed to the constructor function.
Documentation
We'll define some error handling code in the base instantiation of .getSlideIndex(). Also added some documentation
New script ref