Here is my JavaScript:
Function "uploadForm" is invisible by DOM, because function "uploadForm" is defined in another function. In your code , another function means : $(document).ready(function(){...}).
$(document).ready(function(){...})
In jQuery, you can bind event like this:
HTML:
....
JS: