I don't think max is available as a static method. I.e. you can't do moment.max  it has to be moment().max can you verify?