block 'popup' js fix: delMod('visible') issue 965