Removing and emptying an element in jQuery