Added Drag and Drop file upload
Moved functions out of scripts.js