js test for slider