update template to include Slider JS code from config