New version of class.js defined as requirejs module.