Add comments to bg-editor.js