Javascript Calendar date picker that works