Text this: Solving optimal control problems of the time-delayed systems by a neural network framework