Library update

Replace methot Number.IsNaN that does not work in IE, with other