Simplified JavaScript test.