A example of a arquiteture for a large JavaScript application