general code cleansing in dropzone javascript