Use optimized for loop structures to avoid repeat param lookups:

`for (var i = 0, ii = self.frames.length; i < ii; i++)`