JavaScript scanner: Highlight multi-line comments in diff correctly

This introduces `:keep_state` for the JavaScript scanner. It should also help with multi-line strings in diffs, but I didn't test this.