tests for slider's JavaScript API fixed