a very minimal, functional javascript date library