polyfill for datalist