move slider script into js file and add ability to disable