Re-inject agent when page is reloaded