Included a check on moment.js's availability. Check is used in the date-sorting method. If moment.js is not found it will fallback to the usual sorting.