Adding Javascript for slider

Script for slider added