javascript: make FFI part of AST