StateController Event-driven DOM controller http://htmlforum.ru/index.php?showtopic=16650 http://htmlforum.ru/index.php?showtopic=16674 http://habrahabr.ru/post/173103/ http://habrahabr.ru/post/173023/