JavaScript RateLimiter