Remove visible elements using jQuery

Fixes a JS error on blackberry