Refactored upload
Updated index.html