Good real-world examples for coding common ajax/javascript web pages
===

I'm working on a website with heavy javascript/ajax (like facebook.) For example, a settings page with some editable fields and each of the forms is grabbed and submitted via ajax. Also, some javascript to populate data and do some transition effects.

I looked at some javascript patterns (e.g. module and memoization) and try to use them in my code. However, I felt that it's a very common settings page but I never knew how experienced developers would design the javascript part (and probably html structure.)

It's hard to learn from other websites because most of them just minified their js code. Is there any good resource to learn how to code some common tasks from real-world examples? Thanks!