Please be more consistent - in function createPropArray you declare "i" at the top and here you do it in the loop declaration.
In general all used variables should be declared at a very very top of the function and I'm not aware of any good exception to this rule.