Reduce direct calls to js.call