Create A New Array From Existing Array Javascript Methods In Selenium