Why does this simple jQuery not work?

http://page-test.co.uk/jq.html

It should result in this:

<div class="main">
</div>
<div>1</div>
<div>2</div>
<div>3</div>