More conversion to regular JS classes/Prototype code.