- Lines 8 & 16 should be indented one tab to the right as they are inside the each loop; 
- This code is excellent, very well thought out pushing the index of the element into the array and then pass it through as a value in the options select;