Using in in for loops in JavaScript is not like : in Java or foreach in other languages - instead of providing reference to the element, it provides its index.
If you use a framework like jQuery, there is a method - $.each which gives access to the element (not only the index) via callback when iterating:
var a = ["Favorite", "Starred", "High Rated"];
$.each ( a, function ( index, data )
{
console.log ( data );
});