fixed javascript code to actually include job id when uploading attachments