Revert "fixed js issue for input forms"

This reverts commit d39d30ec7e4d8e4f4259b21b011c1be70e94a6a1.