JS api reduction