Refactored javascript to remove AsynchronousSearchLoadingPanelController