fixing js test error