JavaScript Rate-limiting Resources