incorporated momentjs and got earlier and later functions working
removed datejs