Add timeouts to async functions in nodejs