Timeout var not assigned to be used on clearTimeout