AJAX file upload and print command working