Pure javascript date picker