add isFinite for "old" browsers