Use isNaN instead of Number.isNaN.

 * Add compatibility with Safari and old Webkit browsers.
Merge pull request #93 from vbatoufflet/patch-1

Use isNaN instead of Number.isNaN.