added addconfirm function in globs.js