When building big GUI based applications in other languages like C# or Java, we have various patterns like MVP, MVC, MVVM, and even complete guidance packages like Prism (WPF/Silerlight) that help us keep our code maintainable, extendable and keep the complexity of the application at a sane level.
But when it comes to big RIA applications written with html/javascript, I find it hard to find any really good resources.
What are the do's and don'ts for creating a big RIA application in html/javascript (for creating applications like Gmail, Google Calender, Google Docs)?