A JS Polyfill for the HTML date input field