Comment Comment by lioeters To the author, here's a common pattern you can use to avoid defining global variables unless it's needed. ;(function() { const dropzoneDefaults = { ... } class EasyDropzone { ... } const h = function() { ... } // Export to global window.EasyDropzone = EasyDropzone })() parent lioeters 3 years ago