loadAjax method should not loose the div classes defined in the html

I have an index.html where I'm trying to add the timeline.html. 
In timeline.html I only have some DIVs with class "panel" and another class "withBackground". I had to change  ui/appframework.ui.js because when it creates the new layer in index.html, the class "withBackground" wasn't include.