compatibility with momentjs 2.0