do dom node removal using jquery for cross-browser compatibility