jQuery question about init
<p>I have been looking at some websites recently to see how they structure their jQuery and looking at Forrst.com they seem to have a pretty unique way of using it.</p>

<p>Here is a few snippets of code from their site.</p>

<pre><code>Forrst = {
    showingTopClicker: false,
    currentUserID: -1,
    formKey: "",
    init: function () {
        $(document).ready(function () {
            Forrst.formKey = $("meta[name=forrst-form-key]").attr("content");
            Forrst.currentUserID = $("meta[name=forrst-userid]").attr("content");
            Forrst.applyLibs();
            Stream.init();
            $("#promo-excerpt").jTruncate({
                length: 95
            });
            $(".notice-bar a.close").click(function () {
                return Forrst.hideNoticeBar()
            });
            PostForm.init();
            People.init();
            Comments.init();

Stream = {
    isLoading: false,
    streamPath: "",
    pageBy: "after",
    afterID: false,
    page: 1,
    extraParams: {},
    init: function () {
        if ($("#stream").length == 0) {
            return
        }
        Stream.redirectFromHash();
        $(".post-toggle &gt; a").live("click", function () {
            $(this).parent().parent().children(".post").toggle("fast");
            $(this).parent().hide();
            return false
        });
        $(window).scroll(function () {
            if (($(document).height() - $(window).height()) - $(window).scrollTop() &lt;= 300) {
                Stream.loadMore()
            }
        })
    },
    redirectFromHash: function () {
        if (window.location.hash != null &amp;&amp; window.location.hash != "" &amp;&amp; window.location.hash.match(/^#?after:/i)) {
            var b = window.location.pathname.split("/");
            var c = "";

Forrst.init();
</code></pre>

<p>Could anyone explain what is happening here and what the advantages are of building your code in this way? Thanks</p>
