I'm writing my own HIT template for mTurk with HTML / JavaScript (editing the source section). MTurk's format for workers' response is an excel file with various parameters (such as assignment ID, worker ID, etc.). I'm having trouble finding out how do modify this returned excel file, in order to include my own custom parameters in it.
To simplify, my code is:
<html>
<script type="text/javascript">
//many functions
var myObject = {};
//event listeners add attributes to myObject
</script>
</html>
The answer to my HIT is the content of myObject, so I need to link it to the submit button and add it to the outputted excel file.