For some reason when i add the div what it does is to output the website inside it in a loop.
echo "Testing ajax";
I created the div and putted it in sidebar, after the page is loaded and ajax kicks in, in the div appears the web site itself, and in that website in the sidebar another one... you get the idea.
But in the preview in dashboard everything works ok.
No idea why it happens to me