Cleanup and Loading changes

Cleaned up some of the javascript for showing results
Added a loading indicator for longer queries