Update ptoRequest.html

moved datepicker into main function