Note to self: do not use for-in loops to iterate over an array. Javascript frameworks will add methods and properties to the array object which will then be looped through and summarily break code.