fixed js issue for input forms