switch to Number.isNaN polyfill