Ported infograph to JS and prevent exclusion from persisting

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
This construct is for iterating over properties in an object. An array is an object so it _could_ work, but it's not correct. Regardless, use `_.each` instead.