Php Remove First Item In Array Javascript Methods In Selenium