userspace/libsinsp/filterchecks: make extract_as_js virtual