Move spinner outside of $timeout