code changes after momentjs integration