fix NaN-timer in IE & Safari & mobile-browsers