Uploading a file to the server using AJAX | Hacker News Reader