wait for DOM to remove attribute
use window.jQuery instead of $
updated to removeAttr method