Implements loading search results

Also adds basic error handling to loadPageIntoElement