Trying to create div > ul with jquery append
<p>This snippet of code creates a ul outside of the .tile div, but I need to be inside.</p>

<pre><code>$(container).append(
 '&lt;div class="tile" /&gt;' + '&lt;ul class="layer"&gt;&lt;/ul&gt;' + '&lt;/div&gt;'
);

RESULT:              
&lt;div class="tile"&gt;&lt;/div&gt;
&lt;ul class="layer"&gt;&lt;/ul&gt;

TRYING TO GET:
&lt;div class="tile"&gt;
 &lt;ul class="layer"&gt;&lt;/ul&gt;
&lt;/div&gt;
</code></pre>