Adding Behavior for Slider.js.

would it matter if targets is an empty array? If that's not valid input, you might do `if (!targets && targets.length)...`