Make throttle function as closure