This weird piece of code I always see in Javascript
<p>I'm not Javascript expert, but the old Javascript I know is just a bunch of simple functions and variables like this:</p>

<pre><code>function doSomething(){
    var data = "test";
    return data;
}
</code></pre>

<p>But lately I'm seeing some Javascript code like this:</p>

<pre><code>$(document).ready(function(){
                    $("#about").hide();
                    $(".tababout").collapser({
                        target: '#about',
                        effect: 'slide',
                        changeText: false,
                    });
        });
</code></pre>

<p>What the hell is this? What is it called? Is it easier and supported by all browsers? I need more informations about this please.</p>
