corrected autosubmit.js