JS fix (Error messages)