how to get all months between two dates in javascript