moved upload input javascript from index.js to upload.js where it belongs