Polyfill for input type=date/time that works with IE and FireFox