fixed js onsubmit Error