Automatically add an id attribute to the divs, if none is set