Made widget deletion function use jQuery remove() rather than HTML element remove(), which is not supported by IE (IE9, at least).