executeScriptOld function

Execute JavaScript asynchronously on browser.