It certainly looks like a good start to me! The next departure section doesn't have any times for me.
Do you have JavaScript disabled? Adblocker maybe?
What browser are you using?
Are you using 24 hour clock or 12 hour clock?
Someone else had issues with it, but then they said it started working for them after a few reloads. So I'm not sure what their issue was.
On line 264, you likely want to check if hr >= 12.