Execute script on browser action