Properly polyfill <input type="number"> for Firefox et al