Numpy Get Highest Value In Array Javascript Function