js breaks forms