I am having difficulty with the following snippet from my multi-variable calculus textbook:

From what I understand, if $f(x,y,z)$ is a vector field on $\Bbb R^3$, then the surface integral of $f$ over a sphere of radius $R$ (centered at the origin), parametrized with spherical co-ordinates with the function $g(\theta,\phi)$, is $\int \int_{S} f \cdot dS$, where $dS = \frac {\partial g}{\partial \theta} \times \frac {\partial g} {\partial \phi} d\theta d\phi $
( ** in the textbook above it is written $T_u , T_v$ which are equivalent to my notation of $ \frac {\partial g}{\partial \theta}, \frac {\partial g} {\partial \phi} $ **). I know that $T_u \times T_v$ is equal to $rR sin \phi$, where $r (x,y,z) = xi + yj + zk$.
Is there an error with this last line since it seems to me that second equality is a scalar, whereas the first, third and fourth are vectors. Also how can I relate my definition of $dS$ with the one described in the picture above. Thanks.