more improvements

there is no need to check for jQuery object's length, because if the
searched element doesn't exist, jQuery object is empty, and prepend is
never called