add isNaN polyfill