minor momentjs deprication tweak

Minor tweak to fix deprication