Trailing spaces and rewritten some for loops in featureinfo to correctly iterate over all the items (The for...in construct failed: on an Array with only one entry, it wanted to iterate 2 times)