small vanilla javascript to enable drag'n'drop uploads with preview functionality