modified post_submit.js