Update api explorer code to use prototype syntax