Set timeout cleaning

Timeout function is much friendly with coffeescript and code that uses it looks better.