Hey there,
It seems you have some problems with MomentJS, I could be of assistance. Judging from the error, there's something wonky going on with the inputs.
I have a decade worth of Experience in Programming, and several years in Javascript. I've used MomentJS every time there has been something to do with Time.
Looking forward to fixing the problem for you.