Cleaning up code

- removing debug code
- pushing values to variables at top of script
- moved stopSlider call to startSlider to completely prevent multiple
instances of the loop from running