Remove chrome references in dialog.js