Use for (var i=0, l = keyNames.length; i <l ; i++) instead of for in, that caused prototype properties (like _super and so on) to be used in the iteration.