IE7 js error fix (tabindex cannot be NaN)