javascript: fix backend to support new inliner