A natural language date parser in Javascript