Parser_js: backport fix from pfff