Fixed JavaScript slider. Still not perfect, but better.