Fix "Cannot read property 'class_group' of undefined"

Referencing `this` inside jquery.each scope when it should be `m` since the minimalect scope is replaced by the jquery function scope.