Extension validation in dropzone.js