I think it is not a special case when inserting some DOM elements before the container element, for instance:
<body>
<h1>My Game!</h1>
<p>A very short description ....</p>
<div id="container"></div>
....
</body>
but when you do this the position of the stick is wrong.