[npo] Fix the json extraction (fixes #3282)

The comment in the javascript file is not always the same.