js_submit fixes