Fixed slider.js syntax error