Stub out basic functions in JS