Definitions of a homotopy Why are the following two definitions for a homotopy equivalent?

Let $f,g: X \to Y$ be maps. Then $f \simeq g$ if and only if there is a map $G:X \to Y^{I}$ such that $G(x)(0) = f(x)$ and $G(x)(1) = g(x),$ for all $x \in X$.

and 

Suppose maps $f,g:X \to Y$ are maps. We say that $f$ is homotopic to $g$, written $f \simeq g$, if there is a continuous function $F: X \times I \to Y$ such that $$F(x,0), \quad F(x,1) = g(x), \quad \text{and} \quad F(*,t) = *.$$

In the first definition there is no mention of a base point as opposed to the second definition so I am wondering how that is possible.
 A: $Y^I$ is the space of continuous functions from $I$ to $Y$.  The topology on it is the natural topology, which is the finest topology for which for every continuous function $H : X\times I \to Y$ there exists a continuous function $\hat{H} : X \to Y^I$ such that $H(x,t) = \hat{H}(x)(t)$.  We make it into a pointed space, by defining the point $*_{Y^I} = t \mapsto *_Y$.  So for any continuous function $F : X\times I \to Y$ we have a continuous function $\hat{F} : X \to Y^I$, but $\hat{F}$ will only be base point preserving only if $F(*_X,t) = *_Y$ as that means $\hat{F}(*_X) = (t \mapsto *_Y) = *_{Y^I}$.  No requirement is made for $F(x,t)$ when $x \neq *_X$.  If the first definition only required $G$ to be a continuous function then these definitions would not be equivalent.  
However, to go the other way we need to be able to make a continuous function $G' : X\times I \to Y$ given a continuous function $G : X \to Y^I$ such that $G'(x,t)=G(x)(t)$.  Here the fact that $I$, the unit interval $[0,1]$, is compact Hausdorff means that it is locally compact which means that such a function always exists.  This also makes the natural topology on $Y^I$ the compact-open topology.  In other words, all this rambling about "natural topologies" and "locally compact", just means that we are assured that the function $H(x) = t \mapsto H'(x,t)$ is always continuous and that we can always find such a continuous function $H'$, namely $H'(x,t) = H(x)(t)$.  It's obvious that we can do this as plain functions, but it is not obvious that they will be continuous.
