Better mechanism of div id generation