You should add «var » as in https://github.com/mapstraction/mxn/blob/release-2.1/source/mxn.core.js#L935
<code>for (var j = 0; j < item.geometry.coordinates[0].length; j++) {</code>