I've gone [this question here] (How can I upload files asynchronously?) and understood the whole AJAX file upload using JavaScript/jQuery.
However, unlike the example in the link above, my server script to process the uploaded data will not be a php file but a JavaScript file (e.g. called "chooseFile.js"). My question is: how can I read the contents of the uploaded file in "chooseFile.js"? I've tried to search for this everywhere but the information is all about uploading a file and not processing it.