Fix 733

When files are uploaded, the cursor scrolls down to the last one and make it blink.
Not sure what `offset()` is needed for ?
You can check if `elem` exist simply by checking if `elem.length` is non-zero.