Changed searchUrl, and added it to doSearch(). Cross domain error on localhost is now working.