js-parser: allow async loading