Made isNaN a local function.
Merge pull request #15 from fidlej/topic_local_isNaN

Made isNaN a local function.