Text this: Optimal feedback control of dynamical systems via value-function approximation