minor tweaks to cms.js with comments and support for dynamically loaded content