Js Get Max Value From Array Javascript Methods In Selenium