Added data transfer handling for in browser script execution and vice versa