Load JS at end of body, remove unused jQuery
Add basic file upload form for old browsers
Only return JSON when requested for /upload