Jquery not working in Safari
<p>Hi could anybody work out why this would not work in Safari? its taken from code by Yi Jiang. Many Thanks</p>

<pre><code>&lt;div id="profile-list"&gt;&lt;/div&gt; 

&lt;script&gt;
   var classes = ['email-checkout', 'absc', 'random', 'brrrr'];

   for (var i = 0; i &lt; 6000; i++) {
    $('&lt;input /&gt;').attr({
     type: 'checkbox',
     class: classes[Math.floor(Math.random() * classes.length)],
     checked: (Math.random() &gt; .5)
    }).appendTo('#profile-list');
   }  
&lt;/script&gt; 
</code></pre>
