Error handling in the scheduler
Change time regex to use optional zeros
Function to write status messages
Catch the error thrown by the scheduler and write it in the status div
Change writeStatus() calls to use the new function