historyUpload.js for uploading to galaxy user history