Switched to script injection for more reliable detection of when page content is loaded