This is the perfect functionality for my site. However, when I copy the code over from jsfiddle to my site it doesn’t work at all. Even though i already have the slider working on the page with this code: