Fixed uploaded file extension removal.
Also replaced tabs with spaces in index.html
Added some JS for the frontend, improved the file extension removal process