moved "global" filedrop variables into closure scope

doc_leave_timer, stop_loop, files_count, files should not be global for
all filedrops - they cause weird bugs when there are more than one
filedrop element on page. For example shared doc_leave_timer causes
multiple docLeave triggering.