using isNaN as an operator for settings.timeout instead of typeof"