add function to let browser extension to inject and execute javascript in tab.