Here is my JavaScript:
The uploadForm function is not in global scope, hence it cannot be found. Just define the function outside of the document.ready callback or make it global by assigning it to a property of the window object:
window.uploadForm = function() {
// ...
};
Or a better way, since you are using jQuery, is to bind the event handler with jQuery instead of using inline event handlers:
$('#yourFormID').on('submit', function() {
// ...
});