Updating generateXMLForBlocks in common.js to be more readable.