[FIX]Fixed the issues raised due to momentjs, make widget work with momentjs