Ported infograph to JS and prevent exclusion from persisting

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Do the assignment to `reverse` above since this expression is hard to read.