Polyfill for replacing datalist inputs with selects on unsupported browsers