momentjs class inherits from object