Expressive timestamp generation and manipulation in Javascript