changes to isNAN.js and isUndefined.js