Ported infograph to JS and prevent exclusion from persisting

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
I mean.. move this line above the `var regex` line since that is applicable to the call below.