for loop breaking out for some reason after array comparison
<p>I have two arrays, and I'm comparing two values, and then setting a json object:</p>

<pre><code>var compare = ["hh", "pictures", "videos", "aboutMe", "contactMe", "cat", "location"];
var data = ["pictures", "videos", "aboutMe", "contactMe", "cat", "location"];
    for (var j=0; j&lt;compare.length; j++) {
        if (compare[j] === data[j]) {
            self.MenuItems.menu_item[j].added = "added";
        }else if (compare[j] !== data[j]){
            self.MenuItems.menu_item[j].added = "";
        }
    }
</code></pre>

<p>for some reason, for all <code>self.MenuItems.menu_item[j]</code>, they all equal either "added" or "";...</p>
