location views: move ajaxComplete function outside of updateLocation