Adding additional documentation to submit.js