back to js array gen for tool