Added json grab function, linked HTML side upload with json/upload.php