Transforming CL.js wrapper classes into derived classes