fixed js text entry clear on submit