ready function and class stubs