don't rely on global isNaN
fix Date.parse
build