Overhaul of dropfile.js

Rewritten to work better in IE8&9