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