rename upload.js to imgupload.js again and move all object initializations to util.js