Php Parse String Into Array Javascript Methods In Selenium