JavaScript test support utility