Having time was great ! May I suggest somethig like http://momentjs.com/ ? Can be done as another PR.