Commit js slider