well, that code should be added automatically, I cant say why it is not being added, but it should be. I'm just letting you know that i don't see it being added, and it being missing is a likely cause of the isue.
if adding that code into your page is causing issues with it, i'll need you to provide a link that shows the problem, I cannot troubleshoot design problems that I cannot see in the browser.