Added javascript for slider