Problem is: Chrome automatically sorts properties of object.
If I have an object like:
var obj = {4: \"first\", 2: \"second\", 1: \"third\"};
Never rely on the order of properties. They are unordered and there is no specification that defines in which order properties should be enumerated.
Chrome orders properties with numeric keys numerically, whereas other browsers enumerate them in insertion order. It is implementation dependent.