Hide error messages using JS instead of mandatory modification (#846)