We've found in our code the next line (yes, you can ask why it even exists, but it does):
console.log(new Date(2015, 10, 9).toString() > new Date(2015, 9, 10).toString())
// Returns false
console.log(new Date(2015, 5, 9).toString() > new Date(2015, 4, 10).toString())
// Returns true
We don't understand how it works exactly, so hopefully someone can explain.