Simple date and time parsing and pretty-printing library in javascript