argmax and argmin for Node.js