js slider code init commit