Ported infograph to JS and prevent exclusion from persisting

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Use falsy check since it could be undefined, e.g. `if (!values) values = [];`