javascript added for slider etc;