Scalable Architecture for Javascript Applications